package cn.ctodb.divination.service.dto;


import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Lob;

/**
 * A DTO for the Hzwx entity.
 */
public class HzwxDTO implements Serializable {

    private Long id;

    private String wh;

    @Lob
    private String hz;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getWh() {
        return wh;
    }

    public void setWh(String wh) {
        this.wh = wh;
    }
    public String getHz() {
        return hz;
    }

    public void setHz(String hz) {
        this.hz = hz;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        HzwxDTO hzwxDTO = (HzwxDTO) o;

        if ( ! Objects.equals(id, hzwxDTO.id)) { return false; }

        return true;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }

    @Override
    public String toString() {
        return "HzwxDTO{" +
            "id=" + id +
            ", wh='" + wh + "'" +
            ", hz='" + hz + "'" +
            '}';
    }
}
